package com.example.WeChat.Control.Api;

import com.example.WeChat.Control.Response.RedisClientTemplate;
import com.example.WeChat.Control.Response.Status;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;


@RestController
@ResponseBody
@RequestMapping(value = "test-api")//测试专用
@Slf4j
public class TestApi {

    @GetMapping("/test")
    public String test(){
        return "test Api";
    }
    @GetMapping("/test2")
    public RedisClientTemplate<Object> test2(){
        return new RedisClientTemplate<Object>(200, Status.Success,"一则测试消息",null);
    }
}
